package com.m4f.web.bind.form;

import java.util.Collection;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class VoteForm {
	
	@NotNull(message="Mail blank")
	@Pattern(regexp = "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$", message="Bad mail")
	private String voter;
	
	
	private Collection<Long> companies;
	
	public String getVoter() {
		return this.voter;
	}
	
	public void setVoter(String v) {
		this.voter = v;
	}
	
	public Collection<Long> getCompanies() {
		return this.companies;
	}
	
	public void setCompanies(Collection<Long> c) {
		this.companies = c;
	}
}
